﻿@model PagedResult<user_record_dto>
@{
    int type = ViewBag.type;
}

@{
    if (Model.rows.Count > 0) {
        var dt = DateTime.Now;
        foreach (var item in Model.rows) {
            <li>
                <div class="lf">
                    <label>@item.title</label>
                    <div>
                        <span class="time">@item.time </span>

                    </div>
                </div>
                <div class="rg rg-2">
                    @if (type == 1) {//红钻
                        if (item.red_drill.ToString().Contains("-")) {
                            <span class="red"> @item.red_drill</span>
                        } else {
                            <span>+@item.red_drill</span>
                        }
                    } else if (type == 2) {//马力
                        if (item.horse_power.ToString().Contains("-")) {
                            <span class="red">@item.horse_power</span>
                        } else {
                            <span>+@item.horse_power</span>
                        }
                    }
                    <span class="time">@(item.e_time) @(!string.IsNullOrEmpty(item.e_time) ? "失效" : "")</span>
                </div>
            </li>
        }
    }

    <page id="page_@type" rows="@Model.rows.Count()" total_result="@Model.total_result"></page>
}
